package sketch.generator;

import java.util.List;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

public class ExhaustiveValueGenerationTest extends TestCase {

	public static Test suite() {
        return new TestSuite(ExhaustiveValueGenerationTest.class);
    }
	
	public void testExhaustiveGeneration() {
		ExhaustiveValueGenerator<String> generator
		  = new ExhaustiveValueGenerator<String>("string1", "string2", "string3");
		int i = 0;
		while(generator.hasNextValues()) {
			List<String> nextValue = generator.nextValue();
			System.out.println((++i) + "th value: ");
			for(String str : nextValue) {
				System.out.print(str + ", ");
			}
			System.out.println();
		}
		assertTrue (i == 39);
	}
}
